package com.atguigu.tingshu.payment.service;

import com.atguigu.tingshu.dto.PaymentDto;
import com.atguigu.tingshu.model.payment.PaymentInfo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Map;

public interface PaymentInfoService {

  /**
   * 获取支付地址
   * @param paymentDto
   * @return
   */
  String getPayAddress(PaymentDto paymentDto);

  /**
   * 主动查询支付结果
   * @param orderNo
   * @return
   */
  Boolean getPayResult(String orderNo);

  void afterPaid(Map<String, String> notifyResult);
}
